package com.relation.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity 
@Table(name="resource_t")
public class Resource {
	public static final int TYPE_THEME = 1;
	public static final int TYPE_BACKGROUND = 2;
	public static final int TYPE_BUY = 3;
	public static final int TYPE_PRICE = 4;

	private long id;
	private String url;
	private int type;
	
	public void setId(long id) {
		this.id = id;
	}
	
	@Id
	@GeneratedValue
	@Column(name="id_c")
	public long getId() {
		return id;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name="url_c")
	public String getUrl() {
		return url;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Column(name="type_c")
	public int getType() {
		return type;
	}
}
